package cn.candy.user.mapper;

import cn.candy.basic.mapper.BaseMapper;
import cn.candy.user.domain.User;

/**
 * 用户Mapper接口
 */
public interface UserMapper extends BaseMapper<User> {
    /**
     * 根据电话号码查用户
     * @param phone
     * @return
     */
    User findByPhone(String phone);

    /**
     * 通过登录信息id获取对象
     * @param id
     * @return
     */
    User findByLogininfoId(Long id);
}
